"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert(
      "GoodsRecords",
      [
        {
          applyId: 1,
          personId: 40,
          status: 0,
          remark: '下周办活动需要，所以申请这个物资',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          applyId: 1,
          personId: 1,
          status: 1,
          remark: '同意',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          applyId: 1,
          personId: 40,
          status: 3,
          remark: '',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          applyId: 1,
          personId: 40,
          status: 4,
          remark: '所有物品完好无损，请求归还入库',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          applyId: 1,
          personId: 1,
          status: 5,
          remark: '同意归还',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          applyId: 2,
          personId: 40,
          status: 0,
          remark: '本周校区需要，急需这个物资',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
      ],
      {}
    );
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.bulkDelete("GoodsRecords", null, {});
  },
};
